{% extends 'base.html' %}
{% block title %}我的借阅 - Local Library{% endblock %}
{% block content %}
    <h1>我借阅的图书</h1>
    {% if bookinstance_list %}
        <table>
            <tr>
                <th>书名</th>
                <th>作者</th>
                <th>借阅日期</th>
                <th>到期日</th>
                <th>是否逾期</th>
            </tr>
            {% for bookinst in bookinstance_list %}
            <tr>
                <td>{{ bookinst.book.title }}</td>
                <td>{{ bookinst.book.author }}</td>
                <td>{{ bookinst.imprint }}</td>
                <td>{{ bookinst.due_back }}</td>
                <td>{% if bookinst.is_overdue %}<span style="color:red">是</span>{% else %}否{% endif %}</td>
            </tr>
            {% endfor %}
        </table>
    {% else %}
        <p>您当前没有借阅任何图书。</p>
    {% endif %}
{% endblock %} 